package com.example.ibsp_demo.pojo.entity.content;

import java.time.LocalDateTime;

public class Partition {
    private Integer pid;
    private String name;
    private Integer parentId; //父分区
    private String icon; // 图标url
    private String description; //简述
    private Integer sort; // 排序权重
    private LocalDateTime createTime;

    public Partition() {
    }

    public Partition(Integer pid, String name, Integer parentId, String icon, String description, Integer sort, LocalDateTime createTime) {
        this.pid = pid;
        this.name = name;
        this.parentId = parentId;
        this.icon = icon;
        this.description = description;
        this.sort = sort;
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Partition{" +
                "pid=" + pid +
                ", name='" + name + '\'' +
                ", parentId=" + parentId +
                ", icon='" + icon + '\'' +
                ", description='" + description + '\'' +
                ", sort=" + sort +
                ", createTime=" + createTime +
                '}';
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
}
